void on_pushButton_analyse_file_clicked();
void on_textBrowser_selectionChanged();
void on_toolButton_panid_clicked();
void on_hexpad_a_clicked();
void on_toolButton_readTime_clicked();
#ifndef TOOLMAINWINDOW_H
#define TOOLMAINWINDOW_H

#include <QMainWindow>
#include "connectorwidget.h"
#include "viewer.h"
#include "openfile.h"

namespace Ui {
class ToolMainWindow;
}

class ToolMainWindow : public QMainWindow
{
    Q_OBJECT

public:
    explicit ToolMainWindow(QWidget *parent = 0);
    ~ToolMainWindow();
signals:
    void txSended(QByteArray ba);

private slots:
    void data_print(QByteArray);

    void on_action_connector_triggered();

    void on_action_viewer_triggered();

    void on_actionfile_triggered();

    void on_pushButton_clicked();

    void on_pushButton_analyse_file_clicked();

private:
    void button_handle(char * input);
    Ui::ToolMainWindow *ui;

    /*定义一个端口*/
    QSerialPort *m_port;

    ConnectorWidget *m_cnct;

    viewer *m_viewer;

};

#endif // TOOLMAINWINDOW_H
